package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.CodesDao;
import com.home.qh.model.Codes;
import com.home.qh.service.CodesManager;

@Service("codesManager")
public class CodesManagerImpl extends GenericManagerImpl<Codes, Long> implements	CodesManager {
	CodesDao codesDao;

    @Autowired
    public CodesManagerImpl(CodesDao codesDao) {
        super(codesDao);
        this.codesDao = codesDao;
    }

	public List<Codes> getCodesByCodeAndName(String codesCode,
			String codesName) {
		return codesDao.getCodesByCodeAndName(codesCode, codesName);
	}

	public List<Codes> getCodesByCodes(Codes codes, String sort, boolean desc, int startResult, int maxResults) {
		return codesDao.getCodesByCodes(codes, sort, desc, startResult, maxResults);
	}
}
